<%-- 
    Document   : Registrar
    Created on : 20/06/2013, 11:04:48 PM
    Author     : dvalle
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%-- En caso de que exista una sesion iniciada redirecciono a index.jsp. "NO tiene caso mostrar este formulario cuando hay una sesion iniciada --%>
<%--t:if test="${sessionScope['sessionUser']!=null}">
<% response.sendRedirect("index.jsp");%--%>
</t:if>
<!DOCTYPE html>
<html>
   <head>
        <meta name="description" content="website description" />
        <meta name="keywords" content="website keywords, website keywords" />
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <!-- stylesheets -->
        <link href="css/style.css" rel="stylesheet" type="text/css" />
        <link href="css/colour.css" rel="stylesheet" type="text/css" />
        <!-- modernizr enables HTML5 elements and feature detects -->
        <script type="text/javascript" src="js/modernizr-1.5.min.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>GESTION DE CONTENIDOS WEB</title>
    </head>
   <body>
       <div id="main">

    <!-- begin header -->
    <header>
      <div id="logo"><h1>GESTION<a href="#"> DE </a> CONTENIDOS<a href="#"> WEB </a></h1></div>
      <nav>
        <ul class="sf-menu" id="nav">
          <li><a href="index.jsp">Inicio</a></li>
          <li><a href="Login.jsp">Login</a></li>
          <li class="selected"><a href="Registrar.jsp">Registrar</a></li>
          <li><a href="#">&nbsp;</a></li>
          <li><a href="#">&nbsp;</a></li>
          <li><a href="#">&nbsp;</a></li>
          <li><form action="logout" method="post"><a href="#">Cerrar Sesion</a></form></li>
        </ul>
      </nav>
    </header>
    <!-- end header -->
    <!-- begin content -->
    <div id="site_content">
      <div id="left_content">
       <h1>REGISTRARSE</h1>
       <p><a href="login.jsp">Iniciar Sesion</a></p>

       <p style="color: #ff0000">${sessionScope['error']}</p>
       <form action="Registrar" method="post">
           <p>Nombre: <input type="text" name="nombre"></p>
           <p>Correo Electronico: <input type="text" name="email"></p>
           <p>Contraseña: <input type="password" name="password1"></p>
           <p>Confirma contraseña <input type="password" name="password2"></p>
           <p><input type="submit" value="Entrar"></p>
       </form>
       </div>
      <div id="right_content">
        <img src="images/contact.jpg" width="450" height="450" title="contact" alt="contact" />
      </div>
    </div>
    <!-- end content -->
     <!-- begin footer -->
    <footer>
        <p>Copyright &copy; 2013 Grupo 4. Analisis y Dise&ntilde;o de Sistemas 2.</p>
      </footer>
    <!-- end footer -->

  </div>
  <!-- javascript at the bottom for fast page loading -->
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <script type="text/javascript" src="js/jquery.easing-sooper.js"></script>
  <script type="text/javascript" src="js/jquery.sooperfish.js"></script>
  <!-- initialise sooperfish menu -->
  <script type="text/javascript">
    $(document).ready(function() {
      $('ul.sf-menu').sooperfish();
    });
  </script>
   </body>
</html>
